/**
 * 
 */
package daikoku.utils;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 * @author josen
 * 
 */
public class DatabaseUtils {
	public static void close(Connection conn, Statement stmt, ResultSet rs) {
		try {
			if (rs != null){
				rs.close();	
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		try {
			if (stmt != null){
				stmt.close();	
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		try {
			if (conn != null){
				conn.close();	
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}
